
/*
riscv32-esp-elf-gcc -march=rv32i -O2 -c test03.c
llvm-objdump -d test03.o
llvm-objcopy -O binary test03.o test03.bin
lua -e"WIDTH=32;DEPTH=512;" bin2mi.lua test03.bin
*/

int test(){
    int value = 0;
    do{
        *(volatile int*)(0x15<<2)  = value;
        *(volatile int*)0x400 = value++;
    }while(value<100);
    return value;
}
